import React from 'react'
import usePublish from 'components/publish-manage/usePublish'

import NewsPublish from '../../../components/publish-manage/NewsPublish'
import { Button } from 'antd'

// 未发布的 1
export default function Unpublished() {
  const { dataSource, handlePublish } = usePublish(1)
  return (
    <div>
      <NewsPublish
        dataSource={dataSource}
        button={(id) => (
          <Button type="primary" onClick={() => handlePublish(id)}>
            发布
          </Button>
        )}
      ></NewsPublish>
    </div>
  )
}
